package com.lhdx.practical.dao;

import com.lhdx.practical.bean.Menu;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MenuDao extends CrudRepository<Menu,Long> {
    List<Menu> findAllByPid(long pid);
    List<Menu> findAllByIdIn(Long[] ids);
    Menu findById(long id);
}
